package com.swlz.config;

import java.io.File;

/**
 * <pre>
 * - 系统配置文件 
 * ClassName : com.swlz.config.Config
 * Author : swlz
 * E-Mail : 2233875735@qq.com
 * Date : 2020年7月4日 上午10:43:47
 * Version : 1.0
 * Copyright 2020 swlz.top Inc. All rights reserved. 
 * Warning: this content is only for internal circulation of the company. It is forbidden to divulge it or use it for other commercial purposes
 * </pre>
 *
 */
public class SystemConfig {
	
	/**
	 * 开发模式
	 */
	private Boolean dev = true;

	/**
	 * 系统名称
	 */
	private String sysName = "默认系统名称"; 
	
	/**
	 * 网站名称
	 */
	private String webName = "默认网站名称";
	/**
	 * 上传文件的保存路径
	 */
	private String upload = "/upload/";
	
	/**
	 * 水印图片
	 */
	private String watermark;
	
	/**
	 * 注册用户默认值
	 */
	private User user = new User();
	

	
	public String getSysName() {
		return sysName;
	}
	public void setSysName(String sysName) {
		this.sysName = sysName;
	}
	public String getUpload() {
		return upload;
	}
	public void setUpload(String upload) {
		this.upload = upload;
	}
	
	public File getUploadFile() {
		return new File(upload);
	}
	
	public File getUploadFile(String file) {
		return new File(upload,file);
	}
	public Boolean getDev() {
		return dev;
	}
	public void setDev(Boolean dev) {
		this.dev = dev;
	}
	public String getWebName() {
		return webName;
	}
	public void setWebName(String webName) {
		this.webName = webName;
	}
	public String getWatermark() {
		return watermark;
	}
	public void setWatermark(String watermark) {
		this.watermark = watermark;
	}
	
	
	
	public User getUser() {
		return user;
	}
	public void setUser(User user) {
		this.user = user;
	}



	public static class User{
		/**
		 * <pre>系统部门编号 - DEPT_ID</pre>
		 **/
		private Long deptId=1L;
		/**
		 * <pre>角色编号 - ROLE_ID</pre>
		 **/
		private Integer roleId=1;

		/**
		 * <pre>用户积分
		 *             默认：0 - USER_SCORE</pre>
		 **/
		private Integer userScore=0;
		/**
		 * <pre>用户等级
		 *             默认：0 - USER_LEVEL</pre>
		 **/
		private Integer userLevel=0;
		/**
		 * <pre>用户状态
		 *             默认：0，
		 *             0 - 正常
		 *             1 - 锁定 - USER_STATUS</pre>
		 **/
		private Integer userStatus=0;
		
		public Long getDeptId() {
			return deptId;
		}
		public void setDeptId(Long deptId) {
			this.deptId = deptId;
		}
		public Integer getRoleId() {
			return roleId;
		}
		public void setRoleId(Integer roleId) {
			this.roleId = roleId;
		}
		public Integer getUserScore() {
			return userScore;
		}
		public void setUserScore(Integer userScore) {
			this.userScore = userScore;
		}
		public Integer getUserLevel() {
			return userLevel;
		}
		public void setUserLevel(Integer userLevel) {
			this.userLevel = userLevel;
		}
		public Integer getUserStatus() {
			return userStatus;
		}
		public void setUserStatus(Integer userStatus) {
			this.userStatus = userStatus;
		}
		
		
	}
	
	
}
